package com.flca.dbs.perst;

import java.util.Iterator;

import org.garret.perst.Persistent;
import org.garret.perst.Storage;

import com.flca.frw.dao.DaoException;

public class PerstDao {

	private Storage storage;
	private Persistent root;

	public PerstDao(Storage storage, Persistent root) {
		super();
		this.storage = storage;
		this.root = root;
	}

	public Storage getStorage() {
		return storage;
	}

	public Persistent getRoot() {
		return root;
	}

	// todo logging
	public static String insert(Object aSource) throws DaoException {
		return "todo";
	}

	// todo logging
	public static String save(Object aSource) throws DaoException {
		return null;
	}

	public static Iterator<Object> findAll(Class<?> aClass) throws DaoException {
		return null;
	}

	public static Object retrieveById(Class<?> aClass, Object aId) throws DaoException {
		return null;
	}

	public static void removeById(Class<?> aClass, Object aId) throws DaoException {
	}

}
